<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BoardGame 3000: Player.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BoardGame 3000
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A simple board game structure</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Player.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#pragma once</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#include &quot;Piece.h&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00008"></a><a class="code" href="class_player.html">00008</a> <span class="keyword">class </span><a class="code" href="class_player.html" title="One Player on board Player for the game.">Player</a>
<a name="l00009"></a>00009 {
<a name="l00010"></a>00010 <span class="keyword">public</span>:
<a name="l00014"></a>00014         <a class="code" href="class_player.html#affe0cc3cb714f6deb4e62f0c0d3f1fd8">Player</a>();
<a name="l00015"></a>00015 
<a name="l00019"></a>00019         <a class="code" href="class_player.html#a749d2c00e1fe0f5c2746f7505a58c062">~Player</a>();
<a name="l00020"></a>00020 
<a name="l00024"></a>00024         <span class="keywordtype">int</span> <a class="code" href="class_player.html#a365f937ae0f3945ba03642a263bdee21">getNumber</a>();
<a name="l00025"></a>00025 
<a name="l00029"></a>00029         <span class="keywordtype">void</span> <a class="code" href="class_player.html#a5fcfbd634f37b896046bd576ba095046">setNumber</a>(<span class="keywordtype">int</span> n);
<a name="l00030"></a>00030 
<a name="l00034"></a>00034         std::vector&lt;Piece*&gt;&amp; <a class="code" href="class_player.html#a7bc692cecd1d096741b71fe10a569824">getPieces</a>();
<a name="l00035"></a>00035 
<a name="l00039"></a>00039         <span class="keywordtype">void</span> <a class="code" href="class_player.html#a8fc6b6c55f227b1a3f8e2633840ccbb7">setPieces</a>(std::vector&lt;Piece*&gt;&amp; nPieces);
<a name="l00040"></a>00040 
<a name="l00044"></a>00044         <span class="keywordtype">int</span> <a class="code" href="class_player.html#ade6633d8038bb35e989dfebe43d7aec8">getNumPieces</a>();
<a name="l00045"></a>00045 
<a name="l00049"></a>00049         <span class="keywordtype">void</span> <a class="code" href="class_player.html#a998f9fa1bcf04524a25d1b1832260569">delPiece</a>(<span class="keywordtype">int</span> num);
<a name="l00050"></a>00050 
<a name="l00054"></a>00054         <span class="keywordtype">void</span> <a class="code" href="class_player.html#a6ca643fe6beb15e0c66f3240ffd62ef9">addPiece</a>(<span class="keywordtype">char</span> symbol, <span class="keywordtype">int</span> xPos, <span class="keywordtype">int</span> yPos);
<a name="l00055"></a>00055         
<a name="l00056"></a>00056 <span class="keyword">private</span>:
<a name="l00057"></a>00057         <span class="keywordtype">int</span> m_playerNum; 
<a name="l00058"></a>00058         std::vector&lt;Piece*&gt; m_pieces; 
<a name="l00059"></a>00059 };
<a name="l00060"></a>00060 
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat May 12 2012 15:22:53 for BoardGame 3000 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
